<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>  
<html>
  <head>
	    <base href="<%=basePath%>">    
	    <title></title>
	   
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		
	    <link rel="stylesheet" type="text/css" href="css/maintable.css" ></link>

	</head>
	<body>
   	<div class ="div_title">
			<div class="div_titlename"> <img src="images/san_jiao.gif" ><span>角色信息列表</span></div>
			<div class="div_titleoper"></div>
		 
	 </div>

	 <table class="main_table" >
	        <tr>
	 				<th>角色名称</th> 	<th>角色描述</th>		<th>操作</th>
	 		</tr>			 		
	 		<c:forEach  var="r" items="${roleList }">
	 			<tr> 			
	 				<td>${ r.roleName}</td>	
	 				<td>${ r.des}	</td>				 					 			
	 				<td>	 			 
		 			<a href="javascript:void(0)">锁定</a> |  
		 				<a href="RoleServlet.do?flag=delete&roleId=${r.id}" onclick="return confirm('确定要删除该角色吗')">删除</a> |  	
		 			    <a href="RoleServlet.do?flag=roleEdit&roleId=${r.id }">角色权限分配</a> 
	 				</td>
	 			</tr>	
	 		</c:forEach>
	</table>
	</body>

</html>